<?php
$baseUrl = Yii::app()->request->baseUrl;
$cs = Yii::app()->getClientScript();
$cs->registerCssFile($baseUrl.'/css/log.css');

$this->breadcrumbs=array(
	'Manage',
);

$this->pageHeader = 'SVN logs';
?>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'log-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'enablePagination'=>true,
	'columns'=>array(
		#'id',
		array(
			'name' => 'folder_id',
			'value' => 'CHtml::link($data->folder->name,Yii::app() ->createUrl("log/view",array("id"=>$data->id)));',
			'type'=>'raw',
		),
		#'path',
		'action',
		array(
			'name' => 'user_id',
			'value' => '$data->user->email',
			'type'=>'raw',
		),
		'time',
		array(
			'name' => 'output',
			'value' => 'substr($data->output, 0, 100)." ..";',
			'type'=>'raw',
		),

	),
)); ?>
